const Service = require('egg').Service;

class HomeService extends Service {
    async find() {
        const home = await this.ctx.curl(`https://www.zhuimengchizixin.club/v1/index/allowfind`, {
            method: 'POST',
            contentType: 'json',
            data: {
                allowname: 'suanming15',
                password: '123456'
            },
            dataType: 'json',
        });
        return home.data;
    }
}

module.exports = HomeService;